
import React, { Component } from 'react';

import {
    View,
    Text,
    TouchableOpacity, Button,
    TextInput
} from 'react-native';

import { BaseDialog } from '@react-native-oh-tpl/react-native-pickers';

class BaseDialog_ extends BaseDialog {

    constructor(props) {
        super(props);
    }

    _getContentPosition() {
        return { justifyContent: 'center', alignItems: 'center' }
    }

    renderContent() {
        return <View style={{
            height: this.getSize(150), width: this.getSize(307),
            backgroundColor: '#ffffff', borderRadius: this.getSize(6)
        }}>
            <Button title='关闭弹窗' onPress={() => {
                this.dismiss(() => {

                });
            }}></Button>

            <Text>
                {this.props.removeSubviews ? 'removeSubviews=true，输入内容关闭后再打开不保留' : 'removeSubviews=false,输入内容关闭后再打开仍保留'}
            </Text>

            <TextInput
                placeholder={'请输入内容'}
            />
        </View >
    }

}

export default BaseDialog_;